package henu.dao;

import java.util.List;

import henu.bean.Teacher;
import henu.bean.User;
/**
 * @author 纪柳任
 * 2016年9月19日下午9:41:13
 */
public interface ITeacherDao {
	//用来检索对象，返回的是符合条件的对象
	public Teacher get(String fteacherId);	
	public List<Teacher> getByName(String teachername);
	public List<Teacher> getByDept(String teachername);
	public List<Teacher> getById(String fteacherId);
	//用来添加对象
	public int add(Teacher teacher);
	//删除点击的对象
	public int delete(String fteacherId);
	//更新所做的更改
	public int update(Teacher teacher);
	//用来获取User表中的所有对象
	public List<Teacher> getAll();
	public List<Teacher> getAll(int pageSize, int pageNow);
	public int getCount();
	

	
}
